import {defineStore} from 'pinia';

const useUserStore = defineStore(
    'userStore',
    {
        state: () => (
            {
                userInfo: {
                    nickName: '',
                    account: '',
                    avatar: '',
                    roleIds: '',
                    roleNames: '',
                    root: false,
                },
                isLogOut: false,
            }
        ),
        actions: {
            demo(_key) {

            },
        }
    })

export default useUserStore;